import xadmin
from course.models import Course, StageTarget, Incentive


# 课程信息
class CourseXadmin(object):
    list_display = ['image', 'name', 'course_num', 'study_time', 'study_period', 'study_num', 'course_level', 'desc',
                    'detail', 'love_num', 'click_num', 'mechanism_info', 'teacher_info']
    model_icon = 'fa fa-address-card'


# 阶段性目标表
class StageTargetXadmin(object):
    list_display = ['course_info', 'category', 'detail','add_time']
    model_icon = 'fa fa-address-card'


# 奖惩表
class IncentiveXadmin(object):
    list_display = ['incentive_situation', 'add_star']
    model_icon = ' fa fa-eercast'


xadmin.site.register(Course, CourseXadmin)
xadmin.site.register(StageTarget, StageTargetXadmin)
xadmin.site.register(Incentive, IncentiveXadmin)
